function fun() = 1

class Foo {
  foo = fun()
}

foo = new Foo {}
